xen.git
20 years agoUpdate and extend netif transmit/receive flag names.
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Mar 2006 09:46:28 +0000 (10:46 +0100)]
Update and extend netif transmit/receive flag names.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 18:18:42 +0000 (19:18 +0100)]
merge with xen-ia64-unstable.hg

20 years agoParavirtualise the CPUID instruction by forcing emulation with an invalid-opcode...
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 18:05:50 +0000 (19:05 +0100)]
Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode prefix.
This allows to clear feature flags and hide unsupported features from guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] build xen_sysfs by default
awilliam@xenbuild.aw [Wed, 22 Mar 2006 17:04:43 +0000 (10:04 -0700)]
[IA64] build xen_sysfs by default

This works on xen/ia64 too, enable the code

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agomerge xen-unstable.hg
awilliam@xenbuild.aw [Wed, 22 Mar 2006 16:12:48 +0000 (09:12 -0700)]
merge xen-unstable.hg

20 years ago[IA64] Fixed VTI domain destruction
awilliam@xenbuild.aw [Wed, 22 Mar 2006 15:57:48 +0000 (08:57 -0700)]
[IA64] Fixed VTI domain destruction

This patch fixed the VTI domain destruction processing.
I tested creation/destruction domU. The "domU" which I tested is
VTI domain and non VTI domain. There was not the memory leak
issue, and VTI domain is not left in a zombie state.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] dom0_max_vcpus and dom0 vcpus creation
awilliam@xenbuild.aw [Wed, 22 Mar 2006 15:53:20 +0000 (08:53 -0700)]
[IA64] dom0_max_vcpus and dom0 vcpus creation

dom0_max_vcpus option added (default is 1).
Create dom0 vcpus.
Fix creations issue for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years agoClean up netfront. Eliminate some macros in favour of inline functions.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:48:48 +0000 (16:48 +0100)]
Clean up netfront. Eliminate some macros in favour of inline functions.
Fix allocation of receive batching arrays (should be per interface).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoExternally triggered reboot signal executes ctrl_alt_del()
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:48:00 +0000 (16:48 +0100)]
Externally triggered reboot signal executes ctrl_alt_del()
rather than calling /sbin/reboot directly.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReplace evtchn macro maze with static inline functions.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 15:47:18 +0000 (16:47 +0100)]
Replace evtchn macro maze with static inline functions.
Todo: could replace current irq_info packed format with a bitfield.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoA few cleanups based on comments from Arjan van de Ven.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 11:21:44 +0000 (12:21 +0100)]
A few cleanups based on comments from Arjan van de Ven.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUse shiny new mutexes instead of semaphores where possible in our Linux code.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 10:55:43 +0000 (11:55 +0100)]
Use shiny new mutexes instead of semaphores where possible in our Linux code.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoLicensing clarifications in Linux source files:
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 10:30:57 +0000 (11:30 +0100)]
Licensing clarifications in Linux source files:
 1. Make it clear in all dual-licensed files that the
    license when distributed with Linux is GPLv2.
 2. Add MODULE_LICENSE(dual) in a few places.
 3. Change many of our EXPORT_SYMBOL() decls to EXPORT_SYMBOL_GPL().
    This is the preference of the Linux maintainers, and avoids any
    trouble down the road if our EXPORT_SYMBOL'ed functions use Linux
    internal interfaces that are GPL only.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoOn x86/64 a domU kernel just sits around forever on a panic because
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:38:44 +0000 (10:38 +0100)]
On x86/64 a domU kernel just sits around forever on a panic because
the HV doesn't know it crashed.  This patch sends the signal, which
allows the kernel to be cleaned up (according to whatever guest.conf
rules). It is basically copied and pasted from the i386 branch.

From: Don Zickus
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSVM patch to enable SMI intercept.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:36:22 +0000 (10:36 +0100)]
SVM patch to enable SMI intercept.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoSVM patch to fix problem with evtchn/lost interrupts and re-enable hvm_safe_block().
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:36:02 +0000 (10:36 +0100)]
SVM patch to fix problem with evtchn/lost interrupts and re-enable hvm_safe_block().

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoSVM patch to fix problem with instruction decode.
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Mar 2006 09:35:35 +0000 (10:35 +0100)]
SVM patch to fix problem with instruction decode.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
20 years agoPrevent a stray error message in the case that either DISTDIR or
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:57:47 +0000 (22:57 +0100)]
Prevent a stray error message in the case that either DISTDIR or
DESTDIR is empty, by preventing readlink from being called in that
case.

Another option would be to use readlink -s, but that has the
undesirable effect of staying silent in situations other than empty
DISTDIR/DESTDIR

Signed-off-by: Aron Griffis <aron@hp.com>
20 years agoClean up #include in init-xen.h.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:55:29 +0000 (22:55 +0100)]
Clean up #include in init-xen.h.

Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
20 years agoThe following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:50:48 +0000 (22:50 +0100)]
The following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
enables you to install SLES-10 as an unmodified guest.

Notice that at this time, vmxassist does not support the graphic bootstrap
loader (gfxboot), so be sure the set "stdvga=1" in your configuration file
to prevent gfxboot from kicking in (or hit SHIFT really fast).

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoFix a build problem when enabling XEN_SYSFS on xen/ia64.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:48:04 +0000 (22:48 +0100)]
Fix a build problem when enabling XEN_SYSFS on xen/ia64.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agomerge
awilliam@xenbuild.aw [Tue, 21 Mar 2006 18:19:11 +0000 (11:19 -0700)]
merge

20 years agoThe patch fixes a problem when testing for device /dev/tpm0. The API
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 17:57:23 +0000 (18:57 +0100)]
The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years ago[IA64] cleanup in domain.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:55:44 +0000 (09:55 -0700)]
[IA64] cleanup in domain.c

Remove unused code.
More static added.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] cleanup of tlb.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:55:04 +0000 (09:55 -0700)]
[IA64] cleanup of tlb.c

#if 0 unused code for tlb management.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remove linux/patch.c
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:18:28 +0000 (09:18 -0700)]
[IA64] remove linux/patch.c

Removed, was unused.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] EFI_RESET_SYSTEM now reboots domU.
awilliam@xenbuild.aw [Tue, 21 Mar 2006 16:13:07 +0000 (09:13 -0700)]
[IA64] EFI_RESET_SYSTEM now reboots domU.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years agoNanosecs not usecs in a time comment.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:40:54 +0000 (15:40 +0100)]
Nanosecs not usecs in a time comment.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago'permitted_clock_jitter' units are nanoseconds not microseconds.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:10:26 +0000 (15:10 +0100)]
'permitted_clock_jitter' units are nanoseconds not microseconds.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove import of xen.lowlevel.xc, left over from when ballooning was done here
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:45:59 +0000 (12:45 +0100)]
Remove import of xen.lowlevel.xc, left over from when ballooning was done here
(moved to the server in December).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoProtect cleanupDomain with the refresh_shutdown_lock. This stops the device
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:41:33 +0000 (12:41 +0100)]
Protect cleanupDomain with the refresh_shutdown_lock.  This stops the device
and watch teardown being run concurrently from multiple threads, silencing
the No such file or directory error when tearing down the control/shutdown
watch, and reducing load on the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:26:38 +0000 (12:26 +0100)]
Merged.

20 years agoOnly send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:25:23 +0000 (12:25 +0100)]
Only send the OFFLINE hotplug event if be->netif is set.  Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the implicit declaration of function `swiotlb_init' warning, by including
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:21:08 +0000 (12:21 +0100)]
Fix the implicit declaration of function `swiotlb_init' warning, by including
the appropriate headers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCreates a module that exports Xen Hypervisor attributes to sysfs. The
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 11:17:19 +0000 (12:17 +0100)]
Creates a module that exports Xen Hypervisor attributes to sysfs. The
module has a tri-state configuration so it can be a loadable module.

Views the hypervisor as hardware device, uses sysfs as  a scripting
interface for user space tools that need these attributes.

Some user space apps, particularly for systems management, need to
know if their kernel is running in a virtual machine and if so in
what type of virtual machine. This property is contained in the
file /sys/hypervisor/type.

The file hypervisor_sysfs.c creates a generic  hypervisor subsystem
that can be linked to by any hypervisor. The file xen_sysfs.c exports
the xen-specific attributes.

Signed-off-by: Mike D. Day <ncmike@us.ibm.com>
20 years agoIncrease timeout while waiting for console/tty node to appear in the store:
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:56:11 +0000 (11:56 +0100)]
Increase timeout while waiting for console/tty node to appear in the store:
the intention appears to have been 500msec, but struct timeval when used with
a select() is in usec, not msec.  The timeout has been set to 250msec (500msec
seems a little long, in any case).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoBreak out common parts of vtpm tests into new vtpm_utils library.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:49:29 +0000 (11:49 +0100)]
Break out common parts of vtpm tests into new vtpm_utils library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:56 +0000 (11:44 +0100)]
Merged.

20 years agoStop the domain at the end of the test.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:18 +0000 (11:44 +0100)]
Stop the domain at the end of the test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:43:44 +0000 (11:43 +0100)]
Merged.

20 years agoSince we now have general rules to build ALL_OBJS, we don't need to manually
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:42:39 +0000 (11:42 +0100)]
Since we now have general rules to build ALL_OBJS, we don't need to manually
build them. Compile-tested on x86 and PPC. Should work on IA64 too.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:42:08 +0000 (11:42 +0100)]
Merged.

20 years agoAdd a.out files to mercurial ignore list.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:40:41 +0000 (11:40 +0100)]
Add a.out files to mercurial ignore list.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:39:09 +0000 (11:39 +0100)]
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks.  This improves
turnaround when developing tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUpdate xen/ia64 to use the new build system. Fixes the ia64 build.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:38:50 +0000 (11:38 +0100)]
Update xen/ia64 to use the new build system. Fixes the ia64 build.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoFix a bug, and also fixes the build with some gcc4 versions.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:34:41 +0000 (11:34 +0100)]
Fix a bug, and also fixes the build with some gcc4 versions.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe current ptrace code is traversing the page table structures to
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:29:17 +0000 (11:29 +0100)]
The current ptrace code is traversing the page table structures to
guest guest physical address, even when the guest paging is disabled.
The gdbserver-xen tries to access guest pdes & ptes to map memory of
hvm guest being debugged; and it gets a seg-fault because guest has not
setup it's paging yet. The attached patch adds guest paging state check,
so that the map_domain_va() can get the correct guest physical address
from guest va.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
20 years agoNew SMP IPI interface function called on_selected_cpus(), currently implemented
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:28:03 +0000 (11:28 +0100)]
New SMP IPI interface function called on_selected_cpus(), currently implemented
only for x86. The x86 implementation of smp_call_function has been simplified
and is now based on on_slected_cpus().

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPut 03_vtpm-susp_res.py in its rightful place.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 08:53:00 +0000 (09:53 +0100)]
Put 03_vtpm-susp_res.py in its rightful place.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTest suspend and resume cycles of the TPM front- and backend.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 00:28:29 +0000 (01:28 +0100)]
Test suspend and resume cycles of the TPM front- and backend.
Now that sysfs is mounted in the RAM disk of the test environment, the
test code does not need to do this anymore. This patch also simplifies
previous tests and the APIs used there. If prerequisites are not met
(vtpm manager not running) the patch will 'skip'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoAdd an option to xmtest to report results to an alternative results repository.
pl@us.ibm.com [Tue, 21 Mar 2006 00:19:24 +0000 (01:19 +0100)]
Add an option to xmtest to report results to an alternative results repository.
The default is preserved but can be overridden by either passing it with -r to runtest.sh or by setting the xmtest_repo environment variable.

Signed-off-by: Paul Larson <pl@us.ibm.com>
20 years agoMake sure the check to see if device is in use doesn't happen. We need
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:13:14 +0000 (01:13 +0100)]
Make sure the check to see if device is in use doesn't happen. We need
to share disk.imgs. Qemu doesn't honor the 'r' read-only value.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoRemove obsolete startNow() method from XmTestDomain object.
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:11:18 +0000 (01:11 +0100)]
Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoAdd mounting /sys for 2.6 xm-test images.
stekloff@dyn9047022152.beaverton.ibm.com [Tue, 21 Mar 2006 00:10:46 +0000 (01:10 +0100)]
Add mounting /sys for 2.6 xm-test images.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoPatch to correct inconsistencies of xm-test reporting.
root@dyn9047022116.beaverton.ibm.com [Tue, 21 Mar 2006 00:08:59 +0000 (01:08 +0100)]
Patch to correct inconsistencies of xm-test reporting.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
20 years agoUpdate to Linux 2.6.16.
cl349@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 20:10:17 +0000 (20:10 +0000)]
Update to Linux 2.6.16.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch => patches/linux-2.6.16/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc6/net-csum.patch => patches/linux-2.6.16/net-csum.patch
rename : patches/linux-2.6.16-rc6/pmd-shared.patch => patches/linux-2.6.16/pmd-shared.patch
rename : patches/linux-2.6.16-rc6/smp-alts.patch => patches/linux-2.6.16/smp-alts.patch

20 years agoAdd missing empty ia64 files.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:38:50 +0000 (18:38 +0100)]
Add missing empty ia64 files.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSome more build-system finessing:
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:36:35 +0000 (18:36 +0100)]
Some more build-system finessing:
 1. subdirs-y -> subdir-y (match Linux name, and also obj-y
    is singular so this makes sense).
 2. subdirs can be declared with or without trailing slash
 3. As with Linux, subdirs can be declared in the obj-y list
    but they must be distinguished by a trailing slash

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix Xen target image dependencies.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:25:01 +0000 (18:25 +0100)]
Fix Xen target image dependencies.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix 64-bit build.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:20:44 +0000 (18:20 +0100)]
Fix 64-bit build.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] Hypercalls are only allowed by kernels.
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:56:58 +0000 (09:56 -0700)]
[IA64] Hypercalls are only allowed by kernels.

Add the "unsafe_hypercall" command line option to allow
some unsafe user hypercalls.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] Check privilege level for pal/sal/efi calls.
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:55:32 +0000 (09:55 -0700)]
[IA64] Check privilege level for pal/sal/efi calls.

Previously a user was able to reset the machine.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] Replace huge if/else if with a switch.
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:53:17 +0000 (09:53 -0700)]
[IA64] Replace huge if/else if with a switch.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] correct mistake from previous patch
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:33:38 +0000 (09:33 -0700)]
[IA64] correct mistake from previous patch

Oops, mis-corrected the previous patch, Kan was correct.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years ago[IA64] Removed warning messages
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:19:36 +0000 (09:19 -0700)]
[IA64] Removed warning messages

This patch removed warning messages in vcpu.c, xentime.c and xensetup.c.
I tested compilation, booting dom0, and creation/destruction domU.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] Removed unnecessary header files
awilliam@xenbuild.aw [Mon, 20 Mar 2006 16:04:51 +0000 (09:04 -0700)]
[IA64] Removed unnecessary header files

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years agoUpgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 16:01:16 +0000 (17:01 +0100)]
Upgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
genapic structure that Xen does not require (mostly because we do
not support Visual Workstation nor IBM/Sequent NUMA-Q).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix a protocol violation in the pcnet emulation. Tested on at least
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:01:32 +0000 (12:01 +0100)]
Fix a protocol violation in the pcnet emulation.  Tested on at least
two systems and fixes the 'corrupt MAC' with scp or sftp.  See bug 574
for more information.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
20 years agoAdd poll() support to xenbus device file.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:00:58 +0000 (12:00 +0100)]
Add poll() support to xenbus device file.

From: Gerd Hoffmann
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:54 +0000 (09:56 +0100)]
Merged.

20 years agoRemove unused, broken, redundant and undocumented option xm create -L.
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:46 +0000 (09:56 +0100)]
Remove unused, broken, redundant and undocumented option xm create -L.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix VMX guest can not be created on PAE xen with more than 4G RAM.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:55:46 +0000 (18:55 +0100)]
Fix VMX guest can not be created on PAE xen with more than 4G RAM.
Also change v_end type from unsigned long to unsigned long long, for we
will have PAE VMX guest with more than 4G memory on PAE xen.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoThis patch fix HVM/VMX time resolution issue that cause IA32E complain
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:52:20 +0000 (18:52 +0100)]
This patch fix HVM/VMX time resolution issue that cause IA32E complain
"loss tick" occationally and APIC time calibration issue.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
20 years agoAbstract some details of context switching into ctxt_switch_from/to
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 16:10:20 +0000 (17:10 +0100)]
Abstract some details of context switching into ctxt_switch_from/to
function hooks. Allows neater separation between paravirtual and
HVM code paths.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove arch/x86 to new build system.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 14:17:50 +0000 (15:17 +0100)]
Move arch/x86 to new build system.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoApply Xen build system changes to all non-arch subdirectories.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 13:02:18 +0000 (14:02 +0100)]
Apply Xen build system changes to all non-arch subdirectories.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoConditionalize building the Xen ACPI driver.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 12:13:35 +0000 (13:13 +0100)]
Conditionalize building the Xen ACPI driver.

Also introduces some cleanups to the Xen build system.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix VMX EFER write logic. Also some cleanups.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:48:51 +0000 (12:48 +0100)]
Fix VMX EFER write logic. Also some cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAdd back hvm guest apm support and fixed the original apm issues to
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:41:28 +0000 (12:41 +0100)]
Add back hvm guest apm support and fixed the original apm issues to
make "halt -p" and "shutdown -h now" work. Also added apm 0x05 CPU
idle, 0x08 Enable PM and 0x0f apm engage/disengage subfunctions.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
20 years agolinux-x86_64: Sync with native.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 16:30:20 +0000 (16:30 +0000)]
linux-x86_64: Sync with native.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix a race that crash domU by calling xenbus_probe twice if it receive event
vhanquez@kneesa.uk.xensource.com [Sat, 18 Mar 2006 13:56:34 +0000 (13:56 +0000)]
Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoMove __do_IRQ() definition to ia64 header file where it belongs.
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 10:12:45 +0000 (11:12 +0100)]
Move __do_IRQ() definition to ia64 header file where it belongs.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 09:59:11 +0000 (10:59 +0100)]
merge with xen-ia64-unstable.hg

20 years agoUpdate to Linux 2.6.16-rc6.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 00:12:26 +0000 (00:12 +0000)]
Update to Linux 2.6.16-rc6.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch

20 years agomerge
awilliam@xenbuild.aw [Fri, 17 Mar 2006 22:37:28 +0000 (15:37 -0700)]
merge

20 years ago[IA64] VT-i Domains should use same hvm builder as VT-x
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:26:24 +0000 (14:26 -0700)]
[IA64] VT-i Domains should use same hvm builder as VT-x

Signed-off-by: Fred Yang <fred.yang@intel.com>
20 years ago[IA64] -mconstant-gp gcc/as option added.
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:23:43 +0000 (14:23 -0700)]
[IA64] -mconstant-gp gcc/as option added.

Thus gp is not saved/restored before calls, saving memory and bundles.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] zero_page_memmap_ptr removed (was unused).
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:21:56 +0000 (14:21 -0700)]
[IA64] zero_page_memmap_ptr removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] fixed a vcpu_translate bug
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:06:20 +0000 (14:06 -0700)]
[IA64] fixed a vcpu_translate bug

There are some below code segments in guest OS
1.     Rsm psr.dt
       ...
2.     itc.d r18
       ...
3.     rfi

After executing instruction 1, domain is in metaphysical mode.
When executing instruction 2, VMM gets control to emulate this
instruction. Firstly VMM will try to get opcode, which may
trigger a tlb miss. At this time domain is in metaphysical mode
and the fault address is in region 5. vcpu_translate handles this
as normal guest metaphysical mode.

It's not correct; sometimes this will make dom0 hang.

cpu_translate should handle this situation as if
guest is not in metaphysical mode.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] setting rr0 is not correctly emulated
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:44:48 +0000 (13:44 -0700)]
[IA64] setting rr0 is not correctly emulated

When guest is not at metaphysical mode, VMM should
set machine rr0.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] Remove "#define page_info page"
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:59 +0000 (13:23 -0700)]
[IA64] Remove "#define page_info page"

This patch removed "#define page_info page" in asm-ia64/config.h.
We tested compilation, booting dom0, and creation/destruction domU.

This patch is "step3" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] Remove header files where "page" is used
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:01 +0000 (13:23 -0700)]
[IA64] Remove header files where "page" is used

This patch is "step2" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years agoFix VMX cpuid handling when EAX == 4.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 15:25:04 +0000 (16:25 +0100)]
Fix VMX cpuid handling when EAX == 4.
When eax == 4, ecx should contain cache level.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAllows the hypervisor to build without warnings (wisely considered
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:45:46 +0000 (11:45 +0100)]
Allows the hypervisor to build without warnings (wisely considered
errors with/-Werror) when perfc_arrays are enabled in xen/Rules.mk.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix the gzip size extraction in xc_inflate_buffer(). Extract
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:44:55 +0000 (11:44 +0100)]
Fix the gzip size extraction in xc_inflate_buffer(). Extract
bytes as unsigned quantities.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix sched_sedf adjdom to properly clamp the period max value.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:00:46 +0000 (11:00 +0100)]
Fix sched_sedf adjdom to properly clamp the period max value.
Remove temporary debug tracing.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDeclare inline function as 'static inline', not 'extern inline'.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 09:57:28 +0000 (10:57 +0100)]
Declare inline function as 'static inline', not 'extern inline'.
Fixes the ioemu build which was broken on some systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReinitialize producer and consumer index to 0 if indexes corruption are detected
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 10:03:37 +0000 (10:03 +0000)]
Reinitialize producer and consumer index to 0 if indexes corruption are detected
in XenBus.
Prevent a kernel infinite loop and add more recovering ability.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoSubstitute kmalloc+memset by kzalloc where possible
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 09:52:05 +0000 (09:52 +0000)]
Substitute kmalloc+memset by kzalloc where possible

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years ago[IA64] disable handling of legacy privified insns
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:22:37 +0000 (12:22 -0700)]
[IA64] disable handling of legacy privified insns

Disable handling of privified insns into another instructions.
This is controled by a static constant.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>